package org.ext.loader.ogre
{
	/**
	 * 顶点缓冲区
	 */
	internal class VertexBuffer
	{
		public var vertexSize:uint;		// 每顶点字节数
		public var vertexCount:uint;
		public var buffer:Vector.<Number>;
		
		
		/**
		 * 建立缓冲区
		 */
		static public function createBuffer( vertexSize:uint, vertexCount:uint):VertexBuffer{
			
			var vb:VertexBuffer = new VertexBuffer;
			vb.vertexSize = vertexSize;
			vb.vertexCount = vertexCount;
			vb.buffer = new Vector.<Number>( vertexSize * vertexCount / 4 );
			
			return vb;
		}
	}
}